/*
 * Copyright 2007. Mount Sinai Hospital, Toronto, Canada.
 * 
 * Licensed under the GNU Lesser General Public License, Version 2. You
 * can find a copy of the license at:
 * 
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
 * 
 * IN NO EVENT SHALL MOUNT SINAI HOSPITAL BE LIABLE TO ANY PARTY FOR DIRECT, 
 * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST 
 * PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, 
 * EVEN IF MOUNT SINAI HOSPITAL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
 * DAMAGE.
 * 
 * MOUNT SINAI HOSPITAL SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF 
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND 
 * ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". 
 * MOUNT SINAI HOSPITAL HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, 
 * UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
 */
package com.sinai.mshab.client.user;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * The username of the
 * 
 * @author Arthur Kalmenson
 */
public interface User extends IsSerializable {

	/**
	 * Sets the username of this User to user.
	 * 
	 * @param user
	 *            the new username of the User.
	 */
	public void setUsername(String user);

	/**
	 * Returns this User's username.
	 * 
	 * @return this User's username.
	 */
	public String getUsername();

	/**
	 * Sets this User's permission to permission.
	 * 
	 * @param permission
	 *            the User's new permission level.
	 */
	public void setPermission(String permission);

	/**
	 * Returns the permission level of this user.
	 * 
	 * @return the permission level of this user.
	 */
	public String getPermission();
}
